package com.xiaobawang.hundouluo.bean;

import android.util.Log;

import org.xutils.common.Callback;

public abstract class NetCallback implements Callback.CommonCallback<String> {

    private String tag;

    public NetCallback(String tag) {
        this.tag = tag;
    }

    @Override
    public void onError(Throwable ex, boolean isOnCallback) {
        Log.e(tag, "error!");
    }

    @Override
    public void onCancelled(CancelledException cex) {
        Log.e(tag, "cancelled!");
    }

    @Override
    public void onFinished() {
        Log.e(tag, "finished!");
    }
}
